﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace BitPortal.Modules
{
    public partial class TopBar : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            if (Membership.GetUser() == null)
            {
                BitPortal.Modules.Login.Login c = (BitPortal.Modules.Login.Login)LoadControl("~/Modules/Login/Login.ascx");
                LoginPlace.Controls.Add(c);
            }
        }
    }
}